<include file="Public/head" />
<?php if($order['status']==10):?>
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.css" />
<script src="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.js" type="text/javascript"></script>
<script src="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2_locale_zh-CN.js" type="text/javascript"></script>
<?php endif;?>
</head>
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar"  menu="shgl.gh" />
    <div class="mianR">
<style type="text/css">
.box{width:186px; height:210px;margin:10px auto;float: left;margin-left: 6px; position:relative;}
.box-title{ position:absolute;left:14px;top:100px;height:30px; line-height:30px;width:157px; text-align:center;color:#fff; z-index:99;}
.sunbox{width:156px; height:120px;margin:10px auto; overflow:hidden; background:url(http://img1.isou365.cn/paimai/yunying/images/tupianBg.jpg) no-repeat;}
.shangchuan{position: relative;overflow: hidden;display:inline-block;*display:inline;padding:4px 10px 4px;font-size:14px;line-height:18px;*line-height:20px;color:#fff;text-align:center;vertical-align:middle;cursor:pointer;background-color:#5bb75b;border:none;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.shangchuan input {position: absolute;top: 0; right: 0;margin: 0;border:none;opacity: 0;filter:alpha(opacity=0); cursor: pointer;}
.files{}
.delimg{height:18px; line-height:18px; position:absolute;top:5px;right:5px;width:18px;border-radius:50%; background:#20ab4f;color:#fff; text-align:center;cursor:pointer;}
/*.delimg{height:18px; line-height:18px;color:#fff; cursor:pointer;font-size:14px;}*/
.box .box-title-bg{ position:absolute;left:14px;top:100px;height:30px; line-height:30px;width:157px; background:#000; opacity:0.5;}
.sunbox-alret{ display:none; position:fixed;top:50%;left:50%; background:#fff;border-radius:5px;z-index:999;padding:20px;}
.sunbox-alret span{height:18px; line-height:18px; position:absolute;top:-5px;right:-5px;width:18px;border-radius:50%; background:#20ab4f;color:#fff; text-align:center;z-index:999; cursor: pointer;}
.sunbox-alret .xie-loading{cursor:pointer;position: absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px; display:none;}
.sunbox-alret .xie-loading img{width:50px;height:50px; display: block;}
.box-plus{width:156px;height:120px; line-height:120px; text-align: center;color:#d3d9d9;font-size:60px; display:block; background:#fff;border:solid 2px #d3d9d9;margin-top:10px; cursor:pointer;}
.xuanzhe .lift-truck{width:280px;padding:10px;display:block; background:#e1e1e1;border-radius:5px;margin-left:140px;margin-top:-10px;}
.xuanzhe .lift-truck #taker_phone,.xuanzhe .lift-truck #taker_sex,.xuanzhe .lift-truck #taker_card,.xuanzhe .lift-truck #take_car_num{width:280px; display:block;height:30px; line-height:30px; text-align:left;}
.xuanzhe .lift-truck span em{float:left; display:block;width:60px; text-align:right;}

.progress { position: relative;
    margin-left: 42px;
    margin-top: -124px;
    width: 100px;
    padding: 1px;
    border-radius: 3px;
    display: none;
}
.bar {background-color: green; display:block; width:0%; height:20px; border-radius: 3px; }
.percent { position:absolute; height:20px; display:inline-block; top:3px; left:2%; color:#fff }
</style>
<script type="text/javascript" src="/static/js/jquery.form.js"></script>
<div class="sunbox-alret">
<span>×</span>
<div class="xie-loading"><img src="http://img1.isou365.cn/paimai/yunying/images/loading.gif"></div>
<img src="" />
</div>
<div class="pageBeijing" style="z-index:998;"></div>
<h3 class="yonghu">过户信息</h3>
<div class="chezhu-xinxi">
    <div class="xinxi-conter xinxi-conter1" style="background: none;margin-bottom:10px;border: none">
        <h4 class="order_no">拍卖单号：<b>{$order.order_no}</b></h4>
    </div>
  <div class="transfer">
          <div class="xinxi-conter xinxi-conter1">
        <h4>车辆信息</h4>
        <ul>
            <li class="clearfix">
                <em>车型</em><em class="name-text">{$car.model}</em>
                <em>排放标准</em><em class="dian-hua"><?php echo C('EMISSION')[$car['emission']];?></em>
            </li>

            <li class="clearfix">
                <em>初登日期</em><em class="name-text">{$car.first_reg_date}</em>
                <em>颜色</em><em class="dian-hua"><?php echo C('CAR_COLOR')[$car['car_color']];?></em>
            </li>
            <li class="clearfix">
                <em>表显里程</em><em class="name-text">{$car.pointer_mileage}万公里</em>
                <em>车况级别</em><em class="name-text">{$car.composite_state}{$car.accident_level}</em>
            </li>
            <li class="clearfix">
                <em>车辆注册地</em><em class="name-text">{$car.reg_city}</em>
                <em>所在地</em><em class="name-text">{$location_area}</em>
            </li>
            <li class="clearfix">
                <em>车牌号</em><em class="name-text">{$car.plate}</em>
                <em>车架号</em><em class="name-text">{$car.vin}</em>
            </li>
            <li class="clearfix">
                <em>年检有效期</em><em class="name-text">{$car.verify_expiry}</em>
                <em>交强险有效期</em><em class="name-text">{$car.com_insure_expiry}</em>
            </li>
            <li class="clearfix">
                <em>渠道来源</em><em class="name-text">
                    <if condition="$car.comefrom neq ''">
                    <?php if(empty($car['comefrom_url'])):?>
                      <?php echo $show_from[$car['comefrom']];?>
                    <?php else: ?>
                      <a href="{$car.comefrom_url}" target="_blank" rel="noreferrer"><?php echo $show_from[$car['comefrom']];?></a>
                    <?php endif;?>
                    <else/>
                      未知
                    </if>
                </em>
                <em>最终成交价</em><em class="name-text">{$last_trans_price} 元</em>
            </li>
        </ul>
      </div>
      <br/>
      <div class="xinxi-conter xinxi-conter1">
          <h4>原车主信息</h4>
          <ul>
              <li class="clearfix">
                  <em>车主类型</em><em class="name-text">{$owner.owner_type_name}</em>
                  <if condition="$owner.owner_type eq 1">
                      <em>原车主姓名</em><em class="name-text">{$owner.seller_name}</em>
                      <else />
                      <em>原公司名称</em><em class="dian-hua">{$owner.seller_name}</em>
                  </if>
              </li>
              <li class="clearfix">
                  <if condition="$owner.owner_type eq 1">
                      <em>原联系电话</em><em class="name-text">{$owner.phone}</em>
                      <else />
                      <em>原联系人姓名</em><em class="name-text">{$owner.contact_person}</em>
                      <em>原联系电话</em><em class="dian-hua">{$owner.phone}</em>
                  </if>
              </li>
          </ul>
      </div>
      <br/>

      <div class="xinxi-conter xinxi-conter1">
          <h4>评估师信息</h4>
          <ul>
              <li class="clearfix">
                  <em>评估师</em><em class="name-text">{$checker_info.real_name}</em>
                  <em>评估师电话</em><em class="dian-hua">{$checker_info.mobile}</em>
              </li>
          </ul>
      </div>
      <br/>

      <div class="xinxi-conter xinxi-conter1">
        <h4>过户信息</h4>
        <ul>
            <li class="clearfix">
                <em>过户限制</em><em class="name-text">{$transfer_info.transfer_limit}</em>
                <em>开票要求</em><em class="name-text">{$transfer_info.invoice} </em>
            </li>
            <li class="clearfix">
                <em>车辆落户</em>
                <em class="name-text">{$transfer_info.transfer_to}</em>
                <em>过户要求</em><em class="name-text">{$transfer_info.transfer_type}</em>
            </li>
            <li class="clearfix procedures">
                <em class="uploadText1">手续上传要求</em>
                <em class="name-text uploadText" style="width:827px;">{$transfer_info.procedures_upload}</em>
            </li>
            <li class="clearfix ">
                <em>车辆补充说明</em>
                <em class="name-text supplement" style="width:827px;">{$car.other_info}</em>
            </li>
        </ul>
      </div>
      <br/>
      <div class="xinxi-conter xinxi-conter1">
        <h4>车商信息</h4>
        <ul>
            <li class="clearfix">
                <em>车商联系人</em><em class="name-text">{$dealer.contact_person}</em>
                <em>联系人电话</em><em class="dian-hua">{$dealer.contact_mobile}</em>
            </li>
        </ul>
      </div>
      <br/>
      <div class="xinxi-conter xinxi-conter1">
        <h4>备注信息</h4>
        <ul>
            <li class="clearfix">
                <em>过户备注</em><em class="name-text">{$transfer_log.remark}</em>
            </li>
        </ul>
      </div>
      <br/>
      <div class="xinxi-conter xinxi-conter1">
        <h4>过户日志</h4>
        <ul>
            <?php foreach ($follow_log as $k => $f){ ?>
            <li class="clearfix">
                <em>
                    <?php if(!empty($f['createtime'])) { ?>
                    {$f.createtime|strtotime|date='Y-m-d H:i',###}
                    <?php } ?>
                </em>
                <em>{$f.real_name}</em><em>继续跟踪</em>
                <em class="name-text">{$f.remark}</em>
            </li>
            <?php } ?>
        </ul>
      </div>
  </div>
</div>

<div class="listBox" style="">
  <div class="yuList">
    <div class="xuanzhe">
      <ul>
        <form id="transForm">
            <input type="hidden" name="order_id" value="{$order.order_id}"/>
            <input type="hidden" name="car_id" value="{$car.car_id}"/>
            <input type="hidden" name="owner_id" value="{$owner.owner_id}" />
            <li class="clearfix remarks1">
                <span>备注</span>
                <textarea id="remark" name="remark" ></textarea>
            </li>
        </form>
      </ul>    
    </div>
    <div class="yongBtn">
      <input id="confirm_transfer" type="button" value="确认" class="queding">
      <input name="重置" type="reset" onclick="window.close();" class="quxiao" value="返回"></div>
  </div>
</div>
<script>
$("#confirm_transfer").click(function(){
        var remark = $("#remark").val();
        $("#confirm_transfer").attr("disabled","disabled");
        $.post("/Transfer/confirmTransferFollow",{"order_id":<?php echo $order['order_id'];?>,"car_id":<?php echo $car['car_id'];?>,"owner_id":<?php echo $owner['owner_id'];?>,"remark":remark},function(data){
        if(data.code!=200){
            shibai_alert(data.msg,2000)
        }else{
            btn_alert("提交成功",1500,function(){
                window.close();
                // history.go(0);
                // location.replace(document.referrer);
            })
        }
    },"json");
});
</script>
    </div>
    </body>
</html>
